package com.zk.nacosprovider.Entity;

import java.io.Serializable;

public class file implements Serializable {
    private String fileid;

    private String belongfolderid;

    private Integer filetype;

    private String filelink;

    private String fileaddress;

    private Integer falsedeletion;

    private String filehtml;

    private static final long serialVersionUID = 1L;

    public String getFileid() {
        return fileid;
    }

    public void setFileid(String fileid) {
        this.fileid = fileid == null ? null : fileid.trim();
    }

    public String getBelongfolderid() {
        return belongfolderid;
    }

    public void setBelongfolderid(String belongfolderid) {
        this.belongfolderid = belongfolderid == null ? null : belongfolderid.trim();
    }

    public Integer getFiletype() {
        return filetype;
    }

    public void setFiletype(Integer filetype) {
        this.filetype = filetype;
    }

    public String getFilelink() {
        return filelink;
    }

    public void setFilelink(String filelink) {
        this.filelink = filelink == null ? null : filelink.trim();
    }

    public String getFileaddress() {
        return fileaddress;
    }

    public void setFileaddress(String fileaddress) {
        this.fileaddress = fileaddress == null ? null : fileaddress.trim();
    }

    public Integer getFalsedeletion() {
        return falsedeletion;
    }

    public void setFalsedeletion(Integer falsedeletion) {
        this.falsedeletion = falsedeletion;
    }

    public String getFilehtml() {
        return filehtml;
    }

    public void setFilehtml(String filehtml) {
        this.filehtml = filehtml == null ? null : filehtml.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        file other = (file) that;
        return (this.getFileid() == null ? other.getFileid() == null : this.getFileid().equals(other.getFileid()))
            && (this.getBelongfolderid() == null ? other.getBelongfolderid() == null : this.getBelongfolderid().equals(other.getBelongfolderid()))
            && (this.getFiletype() == null ? other.getFiletype() == null : this.getFiletype().equals(other.getFiletype()))
            && (this.getFilelink() == null ? other.getFilelink() == null : this.getFilelink().equals(other.getFilelink()))
            && (this.getFileaddress() == null ? other.getFileaddress() == null : this.getFileaddress().equals(other.getFileaddress()))
            && (this.getFalsedeletion() == null ? other.getFalsedeletion() == null : this.getFalsedeletion().equals(other.getFalsedeletion()))
            && (this.getFilehtml() == null ? other.getFilehtml() == null : this.getFilehtml().equals(other.getFilehtml()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFileid() == null) ? 0 : getFileid().hashCode());
        result = prime * result + ((getBelongfolderid() == null) ? 0 : getBelongfolderid().hashCode());
        result = prime * result + ((getFiletype() == null) ? 0 : getFiletype().hashCode());
        result = prime * result + ((getFilelink() == null) ? 0 : getFilelink().hashCode());
        result = prime * result + ((getFileaddress() == null) ? 0 : getFileaddress().hashCode());
        result = prime * result + ((getFalsedeletion() == null) ? 0 : getFalsedeletion().hashCode());
        result = prime * result + ((getFilehtml() == null) ? 0 : getFilehtml().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fileid=").append(fileid);
        sb.append(", belongfolderid=").append(belongfolderid);
        sb.append(", filetype=").append(filetype);
        sb.append(", filelink=").append(filelink);
        sb.append(", fileaddress=").append(fileaddress);
        sb.append(", falsedeletion=").append(falsedeletion);
        sb.append(", filehtml=").append(filehtml);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}